package com.example.tests;

import java.util.Random;

public class GeneratorBase {
	protected static String getRandomString(String fieldName) {
		Random rnd = new Random();
		if(rnd.nextInt(3) == 0) {
			return "";
		} else {
			return fieldName + rnd.nextInt();
		}	
	}		
	
	protected static Object notNull(Object obj) {
		if (obj == null) {
			return "";
		} else {
			return obj;
		}
	}
}
